// let hotSearchUrl = '/ebapi/store_api/hot_search';
// let indexUrl = '/ebapi/public_api/index';

// 此处第二个参数vm，就是我们在页面使用的this，你可以通过vm获取vuex等操作，更多内容详见uView对拦截器的介绍部分：
// https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F
const install = (Vue, vm) => {
	// 此处使用了传入的params参数，一切自定义即可
	// let index = (params = {}) => vm.$u.get('/index/index', params); //首页
	Vue.prototype.$api = {
		//用户信息 
		GetUserInformation: (params = {}) => vm.$u.post('/api/User/GetUserInformation', params),
		//config配置信息 
		config: (params = {}) => vm.$u.post('/api/Common/config', params),
		/* ---------------登录退出注册------------------------ */
		//登录
		login: (data = {}) => vm.$u.post('/api/User/login', data),
		//发送验证码
		send: (data = {}) => vm.$u.post('/api/Sms/send', data),
		//手机验证码登录
		mobilelogin: (data = {}) => vm.$u.post('/api/User/mobilelogin', data),
		//注册
		register: (data = {}) => vm.$u.post('/api/User/register', data),
		//退出登录
		logout: (data = {}) => vm.$u.post('/api/User/logout', data),
		//忘记密码
		resetpwd: (data = {}) => vm.$u.post('/api/User/resetpwd', data),
		/* ---------------首页--------------- */
		/* ----++++++-设置+++++++----- */
		//修改会员个人信息

		profile: (data = {}) => vm.$u.post('/api/User/profile', data),


		//修改登录密码
		updatepwd: (data = {}) => vm.$u.post('/api/User/updatepwd', data),
		//修改支付密码
		updatepwdpay: (data = {}) => vm.$u.post('/api/User/updatepwdpay', data),
		//修改手机号
		changemobile: (data = {}) => vm.$u.post('/api/User/changemobile', data),
		/* ----++++++-钱包+++++++----- */
		//添加或修改银行卡
		addBankCard: (data = {}) => vm.$u.post('/api/Wallet/addBankCard', data),
		//银行卡列表
		bankCardList: (data = {}) => vm.$u.post('/api/Wallet/bankCardList', data),
		//删除银行卡
		delBankCard: (data = {}) => vm.$u.get('/api/Wallet/delBankCard', data),
		//身份证列表
		idNumberList: (data = {}) => vm.$u.post('/api/Wallet/idNumberList', data),
		//添加或修改身份证信息
		addIdNumber: (data = {}) => vm.$u.post('/api/Wallet/addIdNumber', data),
		//删除身份证
		delIdCard: (data = {}) => vm.$u.get('/api/Wallet/delIdCard', data),
		//我的申请
		myApply: (data = {}) => vm.$u.post('/api/Personal/myApply', data),
		//我的收藏
		myCollection: (data = {}) => vm.$u.post('/api/Personal/myCollection', data),
		//完善微信信息
		proWechat: (data = {}) => vm.$u.post('/api/User/proWechat', data),
		//完善支付宝信息
		proAlipay: (data = {}) => vm.$u.post('/api/User/proAlipay', data),
		//充值列表
		rechageList: (data = {}) => vm.$u.post('/api/Wallet/rechageList', data),
		//充值
		rechagePay: (data = {}) => vm.$u.post('/api/Wallet/rechagePay', data),
		//提现列表
		withdrawalList: (data = {}) => vm.$u.post('/api/Wallet/withdrawalList', data),
		//提现
		withdrawal: (data = {}) => vm.$u.post('/api/Wallet/withdrawal', data),
		//账单
		bill: (data = {}) => vm.$u.post('/api/Index/bill', data),
		//我的简历自定义模板
		myResumeInfo: (data = {}) => vm.$u.get('/api/Personal/myResumeInfo', data),
		//我的简历添加或者修改
		myResumeEdit: (data = {}) => vm.$u.post('/api/Personal/myResumeEdit', data),
		//我的简历回显
		myResume: (data = {}) => vm.$u.get('/api/Personal/myResume', data),
		//补贴历史记录
		subsidysList:(data = {}) => vm.$u.post('/api/Workplaces/subsidysList', data),

		//大转盘列表
		largeTurntableList: (data = {}) => vm.$u.post('/api/Index/largeTurntableList', data),
		//抽奖
		largeTurntable: (data = {}) => vm.$u.post('/api/Index/largeTurntable', data),
		//中奖记录
		winPrizeList: (data = {}) => vm.$u.post('/api/Index/winPrizeList', data),
		//补贴详情
		subsidyDetails:(data = {}) => vm.$u.post('api/Subsidys/subsidyDetails', data),
		//城市省份列表
		area:(data = {}) => vm.$u.post('/api/Workplaces/area', data),























		/* ---------------首页--------------- */
		//轮播图
		rotation: (data = {}) => vm.$u.post('/api/Index/rotation', data),
		//VIP岗位信息展示
		recruitsVipShow: (data = {}) => vm.$u.get('/api/Recruits/recruitsVipShow', data),
		//学历列表
		education: (data = {}) => vm.$u.post('/api/Recruits/education', data),
		//学历列表
		incollarList: (data = {}) => vm.$u.post('/api/Index/collarList', data),
		/* -++++++猎聘+++++- */
		//猎聘列表
		reindex: (data = {}) => vm.$u.post('/api/Recruits/index', data),
		//猎聘详情

		reindexDetails: (data = {}) => vm.$u.get('/api/Recruits/indexDetails', data),
		//收藏/取消收藏猎聘职位
		collectionPosition: (data = {}) => vm.$u.get('/api/Recruits/collectionPosition', data),
		//申请职位
		applyPosition: (data = {}) => vm.$u.get('/api/Recruits/applyPosition', data),
		//VIP岗位信息提交或修改
		recruitsVipSubmit: (data = {}) => vm.$u.post('/api/Recruits/recruitsVipSubmit', data),
		//VIP岗位列表
		recruitsVipList: (data = {}) => vm.$u.get('/api/Recruits/recruitsVipList', data),
		//VIP岗位详情
		recruitsVipDetails: (data = {}) => vm.$u.get('/api/Recruits/recruitsVipDetails', data),
		//VIP岗位取消 
		recruitsVipCancel: (data = {}) => vm.$u.get('/api/Recruits/recruitsVipCancel', data),
		//VIP岗位确认入职
		recruitsVipStatus: (data = {}) => vm.$u.get('/api/Recruits/recruitsVipStatus', data),
		/* -++++++职场+++++- */
		//职场列表
		woindex: (data = {}) => vm.$u.get('/api/Workplaces/index', data),
		//职场详情
		workplacesDateils: (data = {}) => vm.$u.get('/api/Workplaces/workplacesDateils', data),
		/* -++++++蓝领+++++- */
		//蓝领分类列表
		indexCategory: (data = {}) => vm.$u.get('/api/Bluecollars/indexCategory', data),
		//蓝领热门推荐
		collarHot: (data = {}) => vm.$u.get('/api/Bluecollars/collarHot', data),
		//蓝领招聘列表
		collarList: (data = {}) => vm.$u.get('/api/Bluecollars/collarList', data),
		//蓝领详情
		collarDetails: (data = {}) => vm.$u.get('/api/Bluecollars/collarDetails', data),
		//申请蓝领职位
		applyCollar: (data = {}) => vm.$u.get('/api/Bluecollars/applyCollar', data),
		//收藏/取消收藏蓝领职位  ||收藏/取消收藏实习职位

		blcollectionPosition: (data = {}) => vm.$u.get('/api/Bluecollars/collectionPosition', data),
		/* -++++++实习+++++- */
		//实习职位列表
		Internships: (data = {}) => vm.$u.post('/api/Internships/index', data),
		//实习职位详情 
		indexDetails: (data = {}) => vm.$u.get('/api/Internships/indexDetails', data),
		//申请实习岗位

		inapplyPosition: (data = {}) => vm.$u.get('/api/Internships/applyPosition', data),
		//收藏/取消收藏实习职位
		incollectionPosition: (data = {}) => vm.$u.get('/api/Internships/collectionPosition', data),

		//实习VIP岗位信息提交（添加||修改）
		internshipVipSubmit: (data = {}) => vm.$u.post('/api/Internships/internshipVipSubmit', data),
		//实习VIP岗位列表
		internshipVipList: (data = {}) => vm.$u.get('/api/Internships/internshipVipList', data),
		//实习VIP岗位详情
		internshipVipDetails: (data = {}) => vm.$u.get('/api/Internships/internshipVipDetails', data),
		//实习VIP岗位取消
		internshipVipCancel: (data = {}) => vm.$u.get('/api/Internships/internshipVipCancel', data),
		//实习VIP岗位确认入职
		inrecruitsVipStatus: (data = {}) => vm.$u.get('/api/Internships/recruitsVipStatus', data),
		/* -++++++招考+++++- */
		//招考列表
		rmindex: (data = {}) => vm.$u.post('/api/Recruitments/index', data),
		//招考详情
		getrmindex: (data = {}) => vm.$u.get('/api/Recruitments/recruitmentDateils', data),
		//笔试分类列表
		writtenCategoryList: (data = {}) => vm.$u.get('/api/Recruitments/writtenCategoryList', data),
		//笔试列表
		writtenList: (data = {}) => vm.$u.post('/api/Recruitments/writtenList', data),
		//笔试详情
		writtenDetails: (data = {}) => vm.$u.get('/api/Recruitments/writtenDetails', data),
		//笔试立即购买
		writtenPay: (data = {}) => vm.$u.post('/api/Recruitments/writtenPay', data),
		//笔试购买记录
		writtenUserPayList: (data = {}) => vm.$u.get('/api/Recruitments/writtenUserPayList', data),
		//面试分类列表
		interviewCategoryList: (data = {}) => vm.$u.get('/api/Recruitments/interviewCategoryList', data),
		//面试列表
		interviewList: (data = {}) => vm.$u.post('/api/Recruitments/interviewList', data),
		//面试详情
		interviewDetails: (data = {}) => vm.$u.get('/api/Recruitments/interviewDetails', data),
		//购买面试
		interviewPay: (data = {}) => vm.$u.post('/api/Recruitments/interviewPay', data),
		//面试购买记录 
		interviewPayList: (data = {}) => vm.$u.get('/api/Recruitments/interviewPayList', data),
		/* -++++++补贴+++++- */
		//补贴提交
		subsidy: (data = {}) => vm.$u.post('/api/Subsidys/subsidy', data),
		//补贴列表
		subsidyList: (data = {}) => vm.$u.post('/api/Subsidys/subsidyList', data),
		//修改申请
		subsidyEdit: (data = {}) => vm.$u.post('/api/Subsidys/subsidyEdit', data),
		//取消申请
		cancelSubsidy: (data = {}) => vm.$u.post('/api/Subsidys/cancelSubsidy', data),
		//删除申请
		delSubsidy: (data = {}) => vm.$u.post('/api/Subsidys/delSubsidy', data),
		/* -++++++会员+++++- */
		//猎聘会员列表
		recruitsLevel: (data = {}) => vm.$u.get('/api/Member/recruitsLevel', data),
		//蓝领会员列表	
		blueCollarLevel: (data = {}) => vm.$u.get('/api/Member/blueCollarLevel', data),
		//实习会员列表
		internshipsLevel: (data = {}) => vm.$u.get('/api/Member/internshipsLevel', data),
		//职场会员列表
		workplacesLevel: (data = {}) => vm.$u.get('/api/Member/workplacesLevel', data),
		//招考会员列表
		recruitmentLevel: (data = {}) => vm.$u.get('/api/Member/recruitmentLevel', data),
		//买猎聘会员
		recruitsPay: (data = {}) => vm.$u.post('/api/Member/recruitsPay', data),
		//购买蓝领会员
		blueCollarPay: (data = {}) => vm.$u.post('/api/Member/blueCollarPay', data),
		//购买实习会员
		internshipPay: (data = {}) => vm.$u.post('/api/Member/internshipPay', data),
		//购买职场会员
		workplacePay: (data = {}) => vm.$u.post('/api/Member/workplacePay', data),
		//购买招考会员
		recruitmentPay: (data = {}) => vm.$u.post('/api/Member/recruitmentPay', data),
		/* -++++++邀请+++++- */
		//会员等级列表
		Userlevel: (data = {}) => vm.$u.get('/api/Workplaces/userlevel', data),
		//邀请记录
		teamList: (data = {}) => vm.$u.post('/api/Workplaces/teamList', data),
		//佣金详情
		commissionDetails: (data = {}) => vm.$u.post('/api/Workplaces/commissionDetails', data),
		/* -++++++招商+++++- */
		//提交招商
		attract: (data = {}) => vm.$u.post('/api/Workplaces/attract', data),
		/* -++++++虚假理赔+++++- */
		//虚假理赔提交
		settlementOfClaims: (data = {}) => vm.$u.post('/api/Workplaces/settlementOfClaims', data),
		//虚假理赔列表
		settlementOfClaimsList: (data = {}) => vm.$u.post('/api/Workplaces/settlementOfClaimsList', data),
		//会员等级列表
		userlevel: (data = {}) => vm.$u.post('/api/Workplaces/userlevel', data),
		//获取补贴详情
		userlevel: (data = {}) => vm.$u.post('/api/Workplaces/subsidyDetails', data),
		//邀请记录
		invitationList: (data = {}) => vm.$u.post('/api/Workplaces/invitationList', data),
		//提交招商
		attract:(data = {}) => vm.$u.post('/api/Workplaces/attract', data),
		//提交意见反馈
		feedback:(data = {}) => vm.$u.post('api/User/feedback', data),
		//注销账户
		cancellation:(data = {}) => vm.$u.post('api/User/cancellation', data)









	};
}

export default {
	install
}
